<!--ZmHtml 富文本解析-->
<template>
  <view class="zm-html">
    <rich-text :nodes="html" />
  </view>
</template>

<script>
  // #ifdef MP-ALIPAY
  import parseHtml from '@/utils/htmlParser'
  // #endif
  export default {
    name: 'yy-html',
    props: {
      content: String
    },
    data() {
      return {}
    },
    computed: {
      html() {
        console.log('html', this.content)
        let _content = this.$utils.formatRichText(this.content)
        // #ifdef MP-ALIPAY
        _content = parseHtml(_content)
        // #endif
        return _content
      }
    }
  }
</script>
<style lang="scss" scoped>
  rich-text {
    line-height: 1.5;
  }
</style>
